package com.yz.lzq.liwushuo.ui.setting;

import android.content.Context;

import com.yz.lzq.liwushuo.ui.modules.comminterface.OnGetSharedPerfenceDataListener;

/**
 * Created by Administrator on 2016/12/19.
 */

public class SettingContract {

    /**
     * Created by Administrator on 2016/12/12.
     * SettingActivity 的 Model层的接口
     */

    public static interface SettingActivityModelInterface {


        /**
         * 写入SharedPerfence
         *
         * @param context    上下文
         * @param gender     性别
         * @param generation 身份
         */
        void writeUserSharedPerfence(Context context, int gender, int generation);

        /**
         * 返回SharedPerfence
         *
         * @return 返回int类型的数组
         * 第一个为gender性别
         * 第二个为generation身份
         */
        void readUserSharedPerfence(Context context, OnGetSharedPerfenceDataListener listener);
    }

    /**
     * Created by Administrator on 2016/12/12.
     * Setting_activity的view层的接口
     * 1.用于返回用户选择的性别和身份
     */

    public static interface SettingActivityViewInterface {
        int getGender();

        int getGeneration();

        void setSexDefaultData(int gender);

        void setIdentityDefaultData(int generation);
    }

}
